Attached patch allows building of netfront and blkfront as modules
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Wed, 9 Nov 2005 13:42:15 +0000 (14:42 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Wed, 9 Nov 2005 13:42:15 +0000 (14:42 +0100)
(xennet.ko and xenblk.ko).

Signed-off-by: Jeremy Katz <katzj@redhat.com>
linux-2.6-xen-sparse/arch/xen/Kconfig
linux-2.6-xen-sparse/drivers/xen/blkfront/Makefile
linux-2.6-xen-sparse/drivers/xen/netfront/Makefile

index 790c2d82e1f88824e3a3386561c5a8c6438cc418..6912d1ce7df1d590f05c4da0a928655d88e354a5 100644 (file)
@@ -94,7 +94,7 @@ config XEN_TPMDEV_CLOSE_IF_VTPM_FAILS
           Say Y if you want this feature.
 
 config XEN_BLKDEV_FRONTEND
-       bool "Block-device frontend driver"
+       tristate "Block-device frontend driver"
        default y
        help
          The block-device frontend driver allows the kernel to access block
@@ -103,7 +103,7 @@ config XEN_BLKDEV_FRONTEND
          (domain 0), then you almost certainly want to say Y here.
 
 config XEN_NETDEV_FRONTEND
-       bool "Network-device frontend driver"
+       tristate "Network-device frontend driver"
        default y
        help
          The network-device frontend driver allows the kernel to access
index 5d1707dd74285c2a8a41ce834a8333029a9b3486..182ef6531d92b678ed840863b551926e1c4af060 100644 (file)
@@ -1,3 +1,5 @@
 
-obj-y  := blkfront.o vbd.o
+obj-$(CONFIG_XEN_BLKDEV_FRONTEND)      := xenblk.o
+
+xenblk-objs := blkfront.o vbd.o
 
index 7eb07a248390e3bfb4bc7ac07e08f42ad0c85da7..dc22829f519d896649deeaea4370f235f596598b 100644 (file)
@@ -1,2 +1,4 @@
 
-obj-y  := netfront.o
+obj-$(CONFIG_XEN_NETDEV_FRONTEND)      := xennet.o
+
+xennet-objs := netfront.o